import load2

allClass={}

for i in range(1,1091):
    Class = load2.getCell(i,load2.Class)
    if not Class in allClass.keys():
        allClass[Class]=[]
    Number = load2.getCell(i,load2.Number)
    Score = load2.getCell(i,load2.SciScore)
    if Score=='':
        allClass[Class].append([Number, 0, -1])
    else:
        allClass[Class].append([Number,float(Score), -1])

_Number=0
_Score=1
_Rank=2

for cname,c in allClass.items():
    c.sort(key=lambda x:x[_Score],reverse=True) # 按分数排序
    for si in range(len(c)):
        c[si][_Rank]=si+1 # 排完的序号就是排名

for i in range(1,1091):
    Number = load2.getCell(i, load2.Number)
    isFinish = False

    for cane,c in allClass.items():
        for s in c:
            if s[_Number]==Number:
                print(s[_Rank])
                isFinish = True
                break
        if isFinish:
            break

    if not isFinish:
        raise str('Not Found')